package com.study.manage.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.study.manage.domain.enumm.EvaluateNewType;
import com.study.manage.domain.enumm.LiveDieState;

@Entity
@Table(name = "sa_news")
public class News extends AbstractEntity {

    private static final long serialVersionUID = 5535409481110171726L;

    public String title;
    public String pic;
    public String content;
    public String contentImg;
    public Long blogId;
    @Column(name = "typee")
    public EvaluateNewType type;
    public LiveDieState state = LiveDieState.LIVE;
    public Date releaseAt;
    public Long userId;

    public News() {}

    public News(Long id) {
        this.id = id;
    }
}
